import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "account" })
export class Account extends EntityObjectType<Account>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    username: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    password: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    verifyMode: string;

    @Define.Column({
        DataType: Define.DataType.BOOL
    })
    isDelete: boolean;
}